package com.example.api.fallback;

import com.example.api.feign.LoginService;
import com.example.common.msg.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class LoginServiceFallback implements LoginService {
    private final Logger logger = LoggerFactory.getLogger(LoginServiceFallback.class);
    @Override
    public R login() {
        logger.error("------------ 调用异常");
        return R.error("接口调用失败");
    }
}
